package classes;

import java.awt.Point;

public class Posicion {
	private int x, y;
	
	public Posicion(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public static int distancia(Posicion p1, Posicion p2){
		return (int) Point.distance( p1.getX(), p1.getY(), p2.getX(), p2.getY());
	}
}
